package com.wsz.security_fx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wsz.security_fx.pojo.User;
import com.wsz.security_fx.service.UserService;
import com.wsz.security_fx.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
* @author wangs
* @description 针对表【user】的数据库操作Service实现
* @createDate 2022-11-27 12:43:26
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public User getUserByUserName(String username) {
        return baseMapper.selectOne(new QueryWrapper<User>().eq("username",username));
    }
}




